import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";

// 税源地列表
export function taxList(params:any) {
  return http.request("get", baseUrlApi("business/tax_sources/list"), { params });
}
// 税源地全部列表
export function taxSourcesList() {
  return http.request("get", baseUrlApi("business/tax_sources/list"));
}
// 税源地状态修改 
export function changesState(params:any) {
  return http.request("post", baseUrlApi("business/tax_sources/changesState"), { data:params });
}
// 税源地详情
export function taxgetInfo(id:number) {
  return http.request("get", baseUrlApi(`business/tax_sources/getInfo/${id}`));
}
// 识别营业执照  
export function getOCRResult(params:any) {
  return http.request("post", baseUrlApi("business/merchants_info/getOCRResult"), { data:params });
}
// 新增税源地 
export function taxSourcesAdd(params:any) {
  return http.request("post", baseUrlApi("business/tax_sources/add"), { data:params });
}
// 发放数据列表  
export function configList(params:any) {
  return http.request("get", baseUrlApi("business/salary_payment_config/list"), { params });
}
// 分公司列表  
export function deptList(params:any) {
  return http.request("get", baseUrlApi("business/dept_info/list"), { params });
}
// 全部分公司 
export function deptallList() {
  return http.request("get", baseUrlApi("business/dept_info/list"));
}
// 分公司详情
export function deptInfo(params:any) {
  return http.request("get", baseUrlApi("business/dept_info/getInfo"), { params });
}
// oem 筛选公司列表 
export function listAgentDept() {
  return http.request("get", baseUrlApi("business/agent_oem/listAgentDept"));
}
// oem 列表  
export function oemList(params:any) {
  return http.request("get", baseUrlApi("business/agent_oem/list"), { params });
}
// 新增OEM
export function oemAdd(params:any) {
  return http.request("post", baseUrlApi("business/agent_oem/add"), { data:params });
}
// oem 详情
export function oemInfo(id:number) {
  return http.request("get", baseUrlApi(`business/agent_oem/getInfo/${id}`));
}
// oem 编辑 
export function oemEdit(params:any) {
  return http.request("post", baseUrlApi("business/agent_oem/edit"), { data:params });
}
// 开票类目列表  
export function ordertypeList(params:any) {
  return http.request("get", baseUrlApi("business/invoice_order_type/list1"), { params });
}
// 开票类目状态修改  
export function typeAudit(params:any) {
  return http.request("post", baseUrlApi("business/invoice_order_type/audit"), { data:params });
}
// 开票类目添加 
export function ordertypeAdd(params:any) {
  return http.request("post", baseUrlApi("business/invoice_order_type/add"), { data:params });
}
// 开票类目编辑  
export function ordertypeEdit(params:any) {
  return http.request("put", baseUrlApi("business/invoice_order_type/edit"), { data:params });
}
// 支付通道管理列表 
export function accountList(params:any) {
  return http.request("get", baseUrlApi("business/bank_account/listBackstage"), { params });
}
// 支付通道状态修改
export function accountAudit(params:any) {
  return http.request("put", baseUrlApi("business/invoice_order_type/audit"), { data:params });
}
// 新增支付通道 
export function bankAdd(params:any) {
  return http.request("post", baseUrlApi("business/bank_account/add"), { data:params });
}  
// 账户类型列表 
export function bankType() {
  return http.request("get", baseUrlApi("constantList/bankType"));
}
// 配置列表
export function listPaymentConfig(id:number | string) {
  return http.request("get", baseUrlApi(`business/bank_account/listPaymentConfig/${id}`));
}
// 编辑支付通道 
export function accountEdit(params:any) {
  return http.request("put", baseUrlApi("business/bank_account/edit"), { data:params });
}
// 支付通道详情 64
export function accountInfo(id: string | number) {
  return http.request("get", baseUrlApi(`business/bank_account/getInfo/${id}`));
}
// 代理列表 
export function agentList() {
  return http.request("get", baseUrlApi("business/agent_info/list"));
}
// 税源地列表
export function getOtherByList(params:any) {
  return http.request("get", baseUrlApi("business/tax_sources/getOtherByList"),{params});
}
// api配置列表 
export function apiList(params:any) {
  return http.request("get", baseUrlApi("business/agent_api/list"),{params});
}
// api配置删除 1
export function apiRemove(id: string | number) {
  return http.request("delete", baseUrlApi(`business/agent_api/remove/${id}`));
}
// 添加api配置 
export function apiAdd(params:any) {
  return http.request("post", baseUrlApi("business/agent_api/add"), { data:params });
}
// 编辑api配置
export function apiEdit(params:any) {
  return http.request("put", baseUrlApi("business/agent_api/edit"), { data:params });
}
// 风险配置  
export function getWarnLevelInfo(params:any) {
  return http.request("get", baseUrlApi("business/merchants_deal/getWarnLevelInfo"),{params});
}
// 风险配置列表1 
export function listHasTemplate() {
  return http.request("get", baseUrlApi("business/tax_sources/listHasTemplate"));
}
// 风险配置列表2 
export function bankaccountList(params:any) {
  return http.request("get", baseUrlApi("business/bank_account/list"),{params});
}
// 保存风险配置修改 
export function entryWarnLevelInfo(params:any) {
  return http.request("post", baseUrlApi("business/merchants_deal/entryWarnLevelInfo"), { data:params });
}
// 佣金结算配置 
export function agentinfoList(params:any) {
  return http.request("get", baseUrlApi("business/agent_info_config/list"),{params});
}
// 开票通知 
export function invoiceList(params:any) {
  return http.request("get", baseUrlApi("business/invoice_notification/list"),{params});
}
// 删除开票通知 6
export function invoiceDel(id: string | number) {
  return http.request("delete", baseUrlApi(`business/invoice_notification/del/${id}`));
}
// 编辑开票通知 
export function invoiceEdit(params:any) {
  return http.request("put", baseUrlApi("business/invoice_notification/edit"), { data:params });
}
// 开票通知新增 公司列表 
export function listTaxSources() {
  return http.request("get", baseUrlApi("business/invoice_notification/listTaxSources"));
}
// 新增通知 
export function notificationAdd(params:any) {
  return http.request("post", baseUrlApi("business/invoice_notification/add "), { data:params });
}
// 常用数据导出列表 
export function sqlList() {
  return http.request("get", baseUrlApi("business/sql_config/list"));
}
// 数据导出 
export function exportExcel(params:any) {
  return http.request("get", baseUrlApi("business/sql_config/exportExcel"),{params});
}